if(ESP_PLATFORM)

file(GLOB_RECURSE SOURCES *.c ../i2c/*.c)

idf_component_register(SRCS ${SOURCES}
                        INCLUDE_DIRS ./include ../i2c/include ../config/include)

else()
    message(FATAL_ERROR "LVGL LV examples: ESP_PLATFORM is not defined. Try reinstalling ESP-IDF.")
endif()

